home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mfs055 / mfsproto.h < prev    next >
C/C++ Source or Header  |  1992-04-12  |  5KB  |  91 lines

  1. #ifdef __STDC__
  2. # define    P(s) s
  3. #else
  4. # define P(s) ()
  5. #endif
  6.  
  7.  
  8. /* minixfs.c */
  9. FILESYS *minix_init P((struct kerinfo *k ));
  10. int minix_sanity P((int drv ));
  11. int nolrecno P((char *cmptest2 , int scsiz , int drv ));
  12. static long m_dskchng P((int d ));
  13. void m_invalidate P((int drv ));
  14. int chk_zone P((long num , int drv , char *mesg ));
  15. int chk_inode P((long num , super_info *psblk , char *mesg ));
  16. void crwabs P((int rw , void *buf , unsigned num , long recno , int dev ));
  17. int init_cache P((void ));
  18. void l_sync P((void ));
  19. cache *in_cache P((long numr , int drive , cache_control *control ));
  20. bufr *cget_block P((long numr , int drive , cache_control *control ));
  21. cache *cache_get P((long numr , int drive , cache_control *control ));
  22. int cput_block P((long numr , int drive , void *buf , cache_control *control ));
  23. int read_inode P((unsigned num , d_inode *rip , int drv ));
  24. int write_inode P((unsigned num , d_inode *rip , int drv ));
  25. int read_zone P((long num , void *buf , int drive , cache_control *control ));
  26. bufr *get_zone P((long num , int drive ));
  27. int write_zone P((long num , void *buf , int drive , cache_control *control ));
  28. int write_zones P((long num , void *buf , int drive , cache_control *control ));
  29. int read_zones P((long num , void *buf , int drive , cache_control *control ));
  30. long find_zone P((d_inode *rip , long numr , int drive , int flag ));
  31. int next_zone P((d_inode *rip , long numr , void *buf , int drive ));
  32. int cnext_zone P((d_inode *rip , long numr , bufr **buf , int drive ));
  33. off_t search_dir P((char *name , unsigned inum , int drive , int flag ));
  34. int badname P((char *name ));
  35. static long m_root P((int dev , fcookie *dir ));
  36. static long m_lookup P((fcookie *dir , char *name , fcookie *entry ));
  37. static long m_creat P((fcookie *dir , char *name , unsigned mode , int attr , fcookie *entry ));
  38. static DEVDRV *m_getdev P((fcookie *file , long *special ));
  39. static long m_getxattr P((fcookie *file , XATTR *xattr ));
  40. static long m_chown P((fcookie *file , int uid , int gid ));
  41. static long m_chmode P((fcookie *file , unsigned mode ));
  42. static long m_mkdir P((fcookie *dir , char *name , unsigned mode ));
  43. static long m_rmdir P((fcookie *dir , char *name ));
  44. static long m_remove P((fcookie *dir , char *name ));
  45. static long m_getname P((fcookie *root , fcookie *dir , char *pathname ));
  46. static long m_open P((FILEPTR *f ));
  47. static long m_close P((FILEPTR *f, int pid ));
  48. static long m_read P((FILEPTR *f , char *buf , long len ));
  49. static long m_seek P((FILEPTR *f , long offset , int flag ));
  50. static long m_write P((FILEPTR *f , char *buf , long len ));
  51. static long m_ioctl P((FILEPTR *f , int mode , void *buf ));
  52. static long m_datime P((FILEPTR *f , int *timeptr , int flag ));
  53. static long m_select P((FILEPTR *f , long proc , int mode ));
  54. static void m_unselect P((FILEPTR *f , long proc , int mode ));
  55. static long m_opendir P((DIR *dirh , int flag ));
  56. static long m_readdir P((DIR *dirh , char *name , int namelen , fcookie *fc ));
  57. static long m_rewinddir P((DIR *dirh ));
  58. static long m_closedir P((DIR *dirh ));
  59. static long m_rlabel P((fcookie *dir , char *name , int namelen ));
  60. static long m_wlabel P((fcookie *dir , char *name ));
  61. static long m_dfree P((fcookie *dir , long *buffer ));
  62. static long m_fscntl P((fcookie *dir , char *name , int cmd , long arg ));
  63. long count_bits P((ushort *buf , long num ));
  64. int bitcount P((unsigned int wrd ));
  65. char *tosify P((char *name , int flag , int mnamlength ));
  66. long alloc_zone P((int drive ));
  67. mino_t alloc_inode P((int drive ));
  68. int free_zone P((long zone , int drive ));
  69. int free_inode P((unsigned inum , int drive ));
  70. long alloc_bit P((ushort *buf , long num , long last ));
  71. long free_bit P((ushort *buf , long bitnum ));
  72. long l_write P((unsigned inum , off_t pos , off_t len , void *buf , int drive ));
  73. int inode_busy P((unsigned inum , int drive ));
  74. static long m_rename P((fcookie *olddir , char *oldname , fcookie *newdir , char *newname ));
  75. static long is_parent P((unsigned dir1 , unsigned dir2 , int drive ));
  76. static long m_hardlink P((fcookie *fromdir , char *fromname , fcookie *todir , char *toname ));
  77. static long m_symlink P((fcookie *dir , char *name , char *to ));
  78. static long m_readlink P((fcookie *file , char *buf , int len ));
  79. void btos_cpy P((char *to , char *from ));
  80. int stob_ncpy P((char *to , char *from , long n ));
  81. static long m_chattr P((fcookie *file , int attr ));
  82. static long m_pathconf P((fcookie *dir , int which ));
  83. int do_trans P((long flag ));
  84. void trunc_inode P((d_inode *rip , int drive , long count , int zap ));
  85. long istat P((unsigned inum , int drive , XATTR *st ));
  86. long ichmod P((unsigned inum , int drive , unsigned mode ));
  87. long ichown P((unsigned inum , int drive , int user , int group ));
  88. long itruncate P((unsigned inum , int drive , off_t length ));
  89.  
  90. #undef P
  91.